package com.jelica.videoteka.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.jelica.videoteka.interfaces.VideoI;

public class Videos implements VideosI{

	private Map<String, VideoI> videos = new HashMap<String, VideoI>();

	public Collection<VideoI> retrieve() {
		return videos.values();
	}

	public VideoI retrieveJedanVideo(String title) {
		return videos.get(title);
	}

	public VideoI save(VideoI videoI) {
		return videos.put(videoI.getNaziv(), videoI);
	}

}
